package action;

public class CheckRight {
	
	public static boolean isAdmin(Object obj) {
		if (obj != null) {
			String typeStr = ""+ obj;
			if (typeStr != null) {
				int typeId = Integer.parseInt(typeStr);
				if (typeId == 1)
					return true;
				else
					return false;
			} else {
				return false;
			}
		} else {
			return false;
		}
	}
}
